<template>
  <ElFormItem prop="defaultValue" label="默认值">
    <ElDatePicker v-model="elProps.defaultValue" style="width: 100%" v-bind="getElProps" clearable></ElDatePicker>
  </ElFormItem>
</template>
<script setup lang="ts" name="DateDefaultValueEditor">
import { ElFormItem, ElDatePicker } from "element-plus";
import { computed } from "vue";
const props = defineProps({
  elProps: {
    type: Object
  }
});
const getElProps = computed(() => {
  return { ...props.elProps, valueFormat: props.elProps!.format };
});
</script>
